// app user的增删改查
import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/union-auth/app-user/list',
    method: 'post',
    data
  })
}

// 创建 or 修改
export function createOrUpdate(data) {
  return request({
    url: '/union-auth/app-user/createOrUpdate',
    method: 'post',
    data
  })
}

export function deleteAppUser(id) {
  return request({
    url: '/union-auth/app-user/' + id,
    method: 'delete'
  })
}

// 超级管理员重置app user的登录密码
export function resetPassword(data) {
  return request({
    url: '/union-auth/app-user/resetPasswordForInner',
    method: 'post',
    data
  })
}
